package com.servicesystem.servicesystem.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.servicesystem.servicesystem.entity.UserAli;
import com.servicesystem.servicesystem.service.UserAliService;
import com.servicesystem.servicesystem.untis.R;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (UserAli)表控制层
 *
 * @author makejava
 * @since 2020-09-28 15:24:10
 */
@RestController
@RequestMapping("userAli")
public class UserAliController {
    /**
     * 服务对象
     */
    @Resource
    private UserAliService userAliService;

    @GetMapping("/user/info")
    public R getUserInfo(@RequestParam String username) {
        UserAli userAli = userAliService.getOne(new QueryWrapper<UserAli>().eq("username", username));
        return R.success().data(userAli);
    }
}
